//
//  ESRootContainerViewController.m
//  EasyStyle
//
//  Created by FK on 16/5/11.
//  Copyright © 2016年 FK. All rights reserved.
//

#import "ESRootContainerViewController.h"
#import "ESBaseViewController.h"
@interface ESRootContainerViewController ()

@end

@implementation ESRootContainerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(drawerCellSelected:) name:DrawerCellSelectedNOtification object:nil];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}


- (void)drawerCellSelected:(NSNotification *)aNotification
{
    
    if ([aNotification.name isEqualToString:DrawerCellSelectedNOtification]) {
        
        WS(weakSelf);
        Class showVC = NSClassFromString(aNotification.object);
        ESBaseViewController *VC = [showVC new];
        [weakSelf.navigationController pushViewController:VC animated:YES];
    }
}

@end
